<?php
		//var_dump($_COOKIE);die;
		//测试程序员专用错误调试
	$config =  array(
		'MODULE_DENY_LIST'      =>  array('Common','Runtime','Aip','Lib','Controller','Conf','Model'),
		'TMPL_ACTION_ERROR' => '/Error/error',//默认错误跳转对应的模板文件	
		'TMPL_ACTION_SUCCESS' =>'/Error/error',//默认成功跳转对应的模板文件	
		'TMPL_EXCEPTION_FILE'   =>  THINK_PATH.'Tpl/think_exception.tpl',// 异常页面的模板文件
		'ERROR_MESSAGE'         =>  '页面错误,请稍后再试!',//错误显示信息,非调试模式有效
	     //路由规则
		'URL_MODEL' =>2,
		'URL_ROUTER_ON' => true,
		'URL_ROUTE_RULES' => array(
			'login$' => 'login/login',//静态地址路由
			'check_name$' => 'login/checkuname',//登录检查
			'out$' => 'login/getout',//退出登录		
			'member$' => 'member/index',//会员中心
			'userlogin$'=>'login/loginon',//会员登录
			'member/xgtx$'=>'member/mypic',//会员修改头像
			'member/info$'=>'member/info_cset',//会员基本信息	
			'member/edit_info$'=>'member/info_get',//会员修改头像
			'member/zhaq$'=>'member/account_aq',//账户安全
			'member/xgdlmm$'=>'member/xg_dlpassword',//修改登录密码
			'member/yzyx$'=>'member/yz_email',//验证邮箱(绑定邮箱)
			'member/bdsj$'=>'member/bd_mobile',//绑定手机
			'member/szzfmm$'=>'member/sz_paypassword',//设置支付密码
			'member/xgzfmm$'=>'member/xg_paypassword',//修改支付密码
			'member/shdz$'=>'member/sh_address',//收货地址
			'member/xzdz$'=>'member/add_address',//新增地址
			'member/xgdz$'=>'member/xg_address',//编辑地址
			'member/deldz$'=>'member/del_address',//删除地址
			'member/swjydd$'=>'member/sw_order',//实物交易订单
			'member/qrsh$'=>'member/qrshh',//确认收货
			'member/ddxq$'=>'member/order_xq',//订单详情
			'member/tk$'=>'member/tuikuan',//退款申请
			'member/tksq$'=>'member/tksqlb',//退款及换货
			'member/tkxx$'=>'member/tksqxx',//退款申请详情
			'member/th$'=>'member/huanhuo',//换货申请
			'member/thsq$'=>'member/thsqlb',//换货申请列表
			'member/thxx$'=>'member/thsqxx',//换货申请详情
			'member/wdsp$'=>'member/wdsc_sp',//收藏商品
			'member/wddp$'=>'member/wdsc_dp',//收藏店铺
			'member/delsc$'=>'member/del_sc',//删除收藏
			'member/wypj$'=>'member/wy_pj',//我要评价
			'member/jypj$'=>'member/jypjlb',//交易评价列表
			'member/wysd$'=>'member/pjsd',//我要晒单
			'member/cancel_order$'=>'SpBuy/clear_order',//取消订单
			'reguser'=>'login/shop_reg',//会员注册
			
			
			'store_joinin$' => 'Shop/sp_storein',//商家入驻
			'store_joinin/step0$' => 'Shop/sp_sep0',//商家入驻协议
			'store_joinin/b2c_step1$' => 'Shop/sp_sep1_b2c',//企业入驻
			'store_joinin/c2c_step1$' => 'Shop/sp_sep1_c2c',//个人入驻
			'store_joinin/c2c_step2$' => 'Shop/sp_sep2_c2c',//个人入驻填写个人资料
			'store_joinin/c2c_step3$' => 'Shop/sp_sep3_c2c',//个人入驻财务资质信息/银行账号/店铺经营信息
			'store_joinin/c2c_step4$' => 'Shop/sp_sep4_c2c',//个人入驻提交审核
			'store_joinin/c2c_step5$' => 'Shop/sp_sep5_c2c',//个人入驻缴纳付款
			'store_joinin/c2c_reset$' => 'Shop/del',//个人入驻重新填写资料
			'store/index$' => 'SpStore/index',//店铺首页、商家中心
			
			'store/store_goods_add$' => 'SpStore/goods_add',//发布商品第一步
			'store/chackstgrade$' => 'SpStore/st_gc_grade',//商品类别检测
			'store/pic_upload$' => 'SpStore/pic_upload',//上传图片
			'store/add_step_two$' => 'SpStore/step_two',//发布商品第二步
			'store/picset$' => 'SpStore/image_set',//店铺图片集
			'store/add_step_three$' => 'SpStore/step_three',//发布商品第三步
			'store/add_step_four$' => 'SpStore/step_four',//发布成功 发布商品第四步
			'store/goods_list$' => 'SpStore/st_goods_list',//出售中的商品
			'store/depot_list$' => 'SpStore/st_depot_list',//仓库中的商品
			'store/gout_list$' => 'SpStore/st_gotout_list',//违规下架
			'store/g_await_list$' => 'SpStore/st_goods_await_list',//待审核商品
			'store/postnavarea$' => 'SpStore/postNavArea',//Ajax获取分区
			
			'store/eachimg$' => 'SpStore/readyimg',//图片遍历
			'store/data_del$' => 'SpStore/st_goods_del',//删除商品
			'store/data_depot$' => 'SpStore/st_data_on',//商品上架
			
			'store/store_set$' => 'SpStore/st_store_setting',//店铺设置
			'store/on_set$' => 'SpStore/submit_store_set',//店铺设置提交
			'store/store_info$' => 'SpStore/st_store_datum',//店铺信息
			'store/shop_xianshi$' => 'SpStore/st_store_xianshi',//商城折扣活动
			'store/st_xianshi$' => 'SpStore/st_store_xianshi_my',//店铺参与的活动
			'store/st_aplay_xs$' => 'SpStore/aplay_xianshi',//申请参与的活动
			'store/xianshi_add$' => 'SpStore/st_xianshi_add',//店铺添加活动
			'store/xianshi_del$' => 'SpStore/st_xianshi_del',//删除限时折扣
			
			'store/g_xianshi$' => 'SpStore/st_goods_xianshi',//促销活动商品管理
			'store/search_goods$' => 'SpStore/goods_select',//促销活动搜索商品
			'store/xianshi_goods_add$' => 'SpStore/st_xianshi_goods_add',//添加活动商品
			'store/order_list$' => 'SpStore/st_order_list',//实物交易订单
			'store/order_unpay$' => 'SpStore/st_order_unpay',//未付款订单
			'store/order_unsend$' => 'SpStore/st_order_unsend',//待发货订单
			'store/order_untake$' => 'SpStore/st_order_untake',//已发货订单
			'store/order_finish$' => 'SpStore/st_order_finish',//已完成订单
			
			'store/order_info$' => 'SpStore/change_state',//获取订单信息
			'store/order_one$' => 'SpStore/st_order_info',//订单详情
			'store/goods_send$' => 'SpStore/st_order_send',//发货设置
			'store/goods_join$' => 'SpStore/st_goods_send',//发货操作
						
	
			'shop/store_list$'=>'Index/store_list',//商城店铺列表
			'shop/show_store$'=>'Index/store_sp_index',//店铺首页
			'shop/store_goods_all$'=>'Index/store_sp_g_all',//店铺所有商品			
			'shop/goods$'=>'SpGoods/index_goods',//商品详情			
			'shop/index$'=>'Index/index',//商城首页
			'shop/one_goods$'=>'SpGoods/money_goods',//商品现金区
			'shop/fenlei$'=>'SpGoods/fenlei_goods',//商品分类页
			'shop/two_goods$'=>'SpGoods/integration_goods',//商品积分区
			'shop/three_goods$'=>'SpGoods/integration_money_goods',//商品积分+现金区
			'shop/four_goods$'=>'SpGoods/purchase_goods',//商品抢购区	
			'shop/coin_goods$'=>'SpGoods/sp_coin_goods',//商品抢购区			
			
			'shop/cart$'=>'SpCart/ajax_cart',//购物车
			'shop/cart_add$'=>'SpCart/add_cart',//加入购物车
			'shop/cart_add_2$'=>'SpCart/add_cart_2',//加入购物车2
			'shop/cart_del$'=>'SpCart/del_cart',//删除购物车信息
			'shop/buy_1$'=>'SpBuy/shop_buy_1',//立即购买
			'shop/shop_cart$'=>'SpCart/cartlist',//购买车列表
			
			'shop/buy_step1$'=>'SpBuy/buy_order_1',//支付第一步 提交订单
			'shop/buy_address$'=>'SpBuy/buy_address_b1',//支付收货地址
			'shop/buy_address2$'=>'SpBuy/buy_address_b2',//支付收货地址
			'shop/buy_step2$'=>'SpBuy/buy_order_2',//支付第二步 生成订单
			'buy/pay_puw$'=>'SpBuy/pay_password_sn',//二级密码检测
			'shop/order_pay_1$'=>'SpBuy/order_pay_spet1',//支付第三步 支付订单
			'buy/buy_chack$'=>'SpGoods/buy_chack',//购买检查
			'buy/add_address$'=>'SpBuy/add_address_n',//购物车新增收货
			
			'shop/addcart$'=>'SpCart/addCart',//购物车
			
		),	
		
	);
	
 if ($_COOKIE['ceshi001']=='ceshi001') {
	$config['TMPL_EXCEPTION_FILE'] = THINK_PATH.'Tpl/think_exception2.tpl';
 }
 
 return $config;